package net.lab1024.sa.admin.module.sast.rule.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.sast.rule.domain.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RuleDao extends BaseMapper<RuleEntity> {

    List<RuleVO> query(Page page, @Param("queryForm") RuleQueryForm queryForm);

    /**
     * from table t_rule_type
     */
    List<RuleType> selectRuleTypesByUuids(@Param("uuids") List<String> uuids);
    List<RuleCategoryCountVO> getCategoryCountList(@Param("category") String category);

    RuleDetailVO getByUuid(@Param("uuid") String uuid);
}
